package com.mengshu.platform.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.io.Serializable;

/**
 * <p>
 *     platform配置
 * </p>
 *
 * @author liuning
 * @date 5:45 下午 2022/2/5
 */
@Data
@ConfigurationProperties(prefix = PlatformProperties.PREFIX)
public class PlatformProperties implements Serializable {
    private static final long serialVersionUID = -5383549192948112991L;
    public static final String PREFIX = "platform";

    private LoginProperties login;

    private DefaultProperties defaults;

    @Data
    public static class LoginProperties implements Serializable{
        private static final long serialVersionUID = 8399646988374111800L;
        private String name;
        private String password;
        private String salt;
    }

    @Data
    public static class DefaultProperties implements Serializable {
        private static final long serialVersionUID = 1754872115346458540L;
        private String password;
    }
}
